import { createModule } from '@/router/type'
import LayoutView from '@/layout/LayoutView.vue'
import { registerComponentName } from '@/utils'

export default createModule([
  {
    path: '/sim',
    redirect: '/sim/manage',
    component: LayoutView,
    meta: {
      icon: import('~icons/menu/sim'),
      title: '物联卡'
    },
    children: [
      {
        path: 'manage',
        name: 'SIMManage',
        meta: { title: '物联卡管理' },
        component: () => import('@views/sim-card/sim-manage.vue')
      },
      {
        path: 'alarm-report',
        name: 'SimCardAlarmReport',
        meta: { title: '网卡告警记录' },
        component: () => import('@views/sim-card/alarm-report.vue')
      }
    ]
  }
], true)
